package com.ruoyi.project.cyq.personnelManagement.personnel.service.impl;

import com.ruoyi.project.cyq.personnelManagement.personnel.domain.Personnel;
import com.ruoyi.project.cyq.personnelManagement.personnel.mapper.PersonnelMapper;
import com.ruoyi.project.cyq.personnelManagement.personnel.service.IPersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;

/**
 * @author ming
 * @date 2020-09-18 19:17
 * @desc 百战程序员 http://www.itbaizhan.com
 */
@Service
public class PersonnelServiceImpl implements IPersonnelService {

    //声名mapper层
    @Autowired
    PersonnelMapper personnelMapper;

    @Override
    public List<Personnel> selectPersonnelList(Personnel personnel) {
        List<Personnel> personnels = personnelMapper.selectPsrsonelList(personnel);
        return personnels;
    }

    @Override
    public Personnel selectPersonnelById(BigInteger clientId) {
        return personnelMapper.selectPersonnelById(clientId);
    }

    @Override
    public List<Personnel> selectPersonnelLista(Personnel personnel) {
        return personnelMapper.selectPersonnelList(personnel);
    }
}
